﻿/*
* ==============================================================================
*
* FileName: CompanyDto.cs
* Created: 2020/6/08 10:45:49
* Author: Meiam
* Description: 
*
* ==============================================================================
*/
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Meiam.System.Model.Dto
{

    /// <summary>
    /// MES数据对象
    /// </summary>
    public class CompleteToERPDto : PageParm
    {

        /// <summary>
        /// 描述 :  
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "")]
        public string QueryText { get; set; }

    }

    /// <summary>
    /// 工单完工入库账返回
    /// </summary>
    public class CompleteRequestDto
    {
        /// <summary>
        /// 系统编码
        /// </summary>
        [Display(Name = "PV_SOURCE_SYS_CODE", Description ="测试miaoshu")]
        public string PV_SOURCE_SYS_CODE { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        [Display(Name = "PV_BUSINESS_TYPE_CODE")]
        public string PV_BUSINESS_TYPE_CODE { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        [Display(Name = "PV_SYNCHRO_FLAG")]
        public string PV_SYNCHRO_FLAG { get; set; }
        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "ROWS")]

        public List<CompleteDetailsRequestDto> ROWS { get; set; }

    }

    public class CompleteDetailsRequestDto
    {
       
        /// <summary>
        /// 描述 : 组织编码
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "ORGANIZATION_CODE")]
        public string ORGANIZATION_CODE { get; set; }

        /// <summary>
        /// 描述 : 工单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "WIP_ENTITY_NAME")]
        public string WIP_ENTITY_NAME { get; set; }

        /// <summary>
        /// 描述 : 搬运单业务类型 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_TYPE")]
        public string TRANSACTION_TYPE { get; set; }

        /// <summary>
        /// 描述 : 成品编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "PRIMARY_ITEM_NUMBER")]
        public string PRIMARY_ITEM_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 等级 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "RANK")]
        public string RANK { get; set; } 


        /// <summary>
        /// 描述 : 处理日期 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_DATE")]
        public string TRANSACTION_DATE { get; set; }



        /// <summary>
        /// 描述 : 搬往子库 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SUBINVENTORY_CODE")]
        public string SUBINVENTORY_CODE { get; set; }

        /// <summary>
        /// 描述 : 搬往货位
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOCATOR")]
        public string LOCATOR { get; set; }

        /// <summary>
        /// 描述 : 组件编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "COMPLETE_ITEM_NUMBER")]
        public string COMPLETE_ITEM_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 批次号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOT_NUMBER")]
        public string LOT_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 完成批次数量 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "COMPLETE_QTY")]
        public string COMPLETE_QTY { get; set; }


        /// <summary>
        /// 描述 : 计量单位 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "PRIMARY_UOM_CODE")]
        public string PRIMARY_UOM_CODE { get; set; }


        /// <summary>
        /// 描述 : 用户名称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "USER_NAME")]
        public string USER_NAME { get; set; }

        /// <summary>
        /// 描述 : 是否完成 行关闭
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "OVERCOMPLETION")]
        public string OVERCOMPLETION { get; set; }
        /// <summary>
        /// 描述 : 来源单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SOURCE_NUM")]
        public string SOURCE_NUM { get; set; }
    }


    /// <summary>
    /// 工单完工入库账返回
    /// </summary>
    public class CompleteResponseDto
    {
        /// <summary>
        /// 描述 : 物料编码 
        /// 空值 : False
        /// 默认 : 1
        /// </summary>
        [Display(Name = "ROWS")]

        public List<CompleteDetailsResponseDto> ROWS { get; set; }

    }

    public class CompleteDetailsResponseDto
    {
        /// <summary>
        /// 描述 : 返回行状态 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "INTF_STATUS")]
        public string INTF_STATUS { get; set; }

        /// <summary>
        /// 描述 : 返回错误明细 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "INTF_MESSAGE")]
        public string INTF_MESSAGE { get; set; }
        /// <summary>
        /// 描述 : 组织编码
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "ORGANIZATION_CODE")]
        public string ORGANIZATION_CODE { get; set; }

        /// <summary>
        /// 描述 : 工单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "WIP_ENTITY_NAME")]
        public string WIP_ENTITY_NAME { get; set; }

        /// <summary>
        /// 描述 : 搬运单业务类型 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_TYPE")]
        public string TRANSACTION_TYPE { get; set; }

        /// <summary>
        /// 描述 : 成品编码 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "PRIMARY_ITEM_NUMBER")]
        public string PRIMARY_ITEM_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 等级 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "RANK")]
        public string RANK { get; set; }


        /// <summary>
        /// 描述 : 处理日期 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "TRANSACTION_DATE")]
        public string TRANSACTION_DATE { get; set; }



        /// <summary>
        /// 描述 : 搬往子库 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SUBINVENTORY_CODE")]
        public string SUBINVENTORY_CODE { get; set; }

        /// <summary>
        /// 描述 : 搬往货位
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOCATOR")]
        public string LOCATOR { get; set; }

        /// <summary>
        /// 描述 : 批次号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "COMPLETE_ITEM_NUMBER")]
        public string COMPLETE_ITEM_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 完成批次数量 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "COMPLETE_QTY")]
        public string COMPLETE_QTY { get; set; }

        /// <summary>
        /// 描述 : 批次号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "LOT_NUMBER")]
        public string LOT_NUMBER { get; set; }

        /// <summary>
        /// 描述 : 计量单位 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "PRIMARY_UOM_CODE")]
        public string PRIMARY_UOM_CODE { get; set; }


        /// <summary>
        /// 描述 : 用户名称 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "USER_NAME")]
        public string USER_NAME { get; set; }

        /// <summary>
        /// 描述 : 是否完成 行关闭
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "OVERCOMPLETION")]
        public string OVERCOMPLETION { get; set; }
        /// <summary>
        /// 描述 : 来源单号 
        /// 空值 : False
        /// 默认 : 
        /// </summary>
        [Display(Name = "SOURCE_NUM")]
        public string SOURCE_NUM { get; set; }
    }

}
